﻿using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace PacoToolKit.Json
{
    /// <summary>
    /// 反序列化器
    /// </summary>
    public static class Deserializer
    {
        /// <summary>
        /// 反序列化
        /// </summary>
        /// <typeparam name="T">可以是任何对象、Collection、DataSet</typeparam>
        /// <param name="json"></param>
        /// <returns></returns>
        public static T DeserializeObject<T>(string json)
        {
            return JsonConvert.DeserializeObject<T>(json);
        }

    }

}
